package com.sdh.onlinemarket;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.servlet.MultipartConfigElement;


@SpringBootApplication
@EnableScheduling
public class OnlineMarket {
    public static void main(String[] args) {
        SpringApplication.run(OnlineMarket.class, args);
    }

    @Bean
    MultipartConfigElement multipartConfigElement() {
        MultipartConfigFactory factory = new MultipartConfigFactory();
        factory.setLocation("C:\\Users\\sdh38\\Documents\\研究生\\陈皮项目开发\\项目文件\\demo2");
        return factory.createMultipartConfig();
    }

}
